﻿@model IEnumerable<Models.Workflow>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>
@Html.ActionLink("Create","Create")
<table>
    <tr>
        <th>
            WorkflowName
        </th>
        <th>
            Version
        </th>
        <th>
            Category
        </th>
        <th>
            AllowProxy
        </th>
        <th>
            Duration
        </th>
        <th>
            Description
        </th>
        <th>
            Sequence
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.WorkflowName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Version)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Category)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AllowProxy)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Duration)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Sequence)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.ID }) |
            @Html.ActionLink("设计", "Design", new { id=item.ID }) |
            @Html.ActionLink("预跑", "Index", "WorkflowPreview", new { workflowid = item.ID },"") |
            @Html.ActionLink("详细", "Details", new { id=item.ID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
